/*
 * HttpResponseParser.hpp
 *
 *  Created on: 09.12.2012
 *      Author: zheka
 */

#ifndef HTTPRESPONSEPARSER_HPP_
#define HTTPRESPONSEPARSER_HPP_
#include "HttpResponse.hpp"
class HttpResponseParser {
private:
	enum {
		STATE_PARISING_HTTP_METHOD, STATE_PARISING_HTTP_HEADERS, STATE_PARISING_FINISHED
	};
	HttpResponse response;

	int state;

public:
	HttpResponseParser();

	bool putLine(const std::string & line);
	HttpResponse getHttpResponse();
};

#endif /* HTTPRESPONSEPARSER_HPP_ */
